package com.qf.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author liuzishuo
 * @email sunlightcs@gmail.com
 * @date 2021-07-21 15:56:24
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {


    void insert(@Param("order") OrderEntity order, @Param("tabIndex") Integer tabIndex);

    OrderEntity selectById(@Param("oid") String oid, @Param("tabIndex") Integer tabIndex);


    void updateOrderStatus(@Param("oid") String oid, @Param("status") Integer status,@Param("tabIndex") Integer tabIndex);

    OrderEntity getInfoById(String oid, Integer tabIndex);
}
